package com.alks.entity.data.entity.imes;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.net.URL;
import java.util.Date;

public class TaskProblemSolve implements Serializable {
    private String companyId;
    private String rowId;
    private String taskNo;
    private String styleNo;
    private String styleColor;
    private Integer seqNo;
    private String stageType;
    private String orderType;
    private String processCode;
    private String processName;
    private Integer planQty;
    private String problemType;
    private String problemUser;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date problemDate;
    private Integer problemNo;
    private String problemDesc;
    private String problemPath;
    private URL problemURL;
    private String solveFlag;
    private String solveState;
    private String solveUser;
    private String liablePerson;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date solveDate;
    private String solveDesc;
    private String solvePath;
    private URL solveURL;
    private String cycle;
    private Integer initData;
    private String beginDateS;
    private String endDateS;
    private String beginDateP;
    private String endDateP;

    public TaskProblemSolve() {
    }

    public String getBeginDateS() {
        return this.beginDateS;
    }

    public void setBeginDateS(String beginDateS) {
        this.beginDateS = beginDateS;
    }

    public String getEndDateS() {
        return this.endDateS;
    }

    public void setEndDateS(String endDateS) {
        this.endDateS = endDateS;
    }

    public String getBeginDateP() {
        return this.beginDateP;
    }

    public void setBeginDateP(String beginDateP) {
        this.beginDateP = beginDateP;
    }

    public String getEndDateP() {
        return this.endDateP;
    }

    public void setEndDateP(String endDateP) {
        this.endDateP = endDateP;
    }

    public Integer getInitData() {
        return this.initData;
    }

    public void setInitData(Integer initData) {
        this.initData = initData;
    }

    public String getSolveState() {
        return "Y".equals(this.solveFlag) ? "已解决" : "未解决";
    }

    public void setSolveState(String solveState) {
        this.solveState = solveState;
    }

    public String getCycle() {
        return this.solveDate != null && this.problemDate != null ? (this.solveDate.getTime() - this.problemDate.getTime()) / 86400000L + "" : "";
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String getRowId() {
        return this.rowId;
    }

    public String getLiablePerson() {
        return this.liablePerson;
    }

    public void setLiablePerson(String liablePerson) {
        this.liablePerson = liablePerson;
    }

    public void setRowId(String rowId) {
        this.rowId = rowId;
    }

    public String getCompanyId() {
        return this.companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getTaskNo() {
        return this.taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public String getStyleNo() {
        return this.styleNo;
    }

    public void setStyleNo(String styleNo) {
        this.styleNo = styleNo;
    }

    public String getStyleColor() {
        return this.styleColor;
    }

    public void setStyleColor(String styleColor) {
        this.styleColor = styleColor;
    }

    public Integer getSeqNo() {
        return this.seqNo;
    }

    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }

    public String getStageType() {
        return this.stageType;
    }

    public void setStageType(String stageType) {
        this.stageType = stageType;
    }

    public String getOrderType() {
        return this.orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getProcessCode() {
        return this.processCode;
    }

    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    public String getProcessName() {
        return this.processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public Integer getPlanQty() {
        return this.planQty;
    }

    public void setPlanQty(Integer planQty) {
        this.planQty = planQty;
    }

    public String getProblemType() {
        return this.problemType;
    }

    public void setProblemType(String problemType) {
        this.problemType = problemType;
    }

    public String getProblemUser() {
        return this.problemUser;
    }

    public void setProblemUser(String problemUser) {
        this.problemUser = problemUser;
    }

    public Date getProblemDate() {
        return this.problemDate;
    }

    public void setProblemDate(Date problemDate) {
        this.problemDate = problemDate;
    }

    public Integer getProblemNo() {
        return this.problemNo;
    }

    public void setProblemNo(Integer problemNo) {
        this.problemNo = problemNo;
    }

    public String getProblemDesc() {
        return this.problemDesc;
    }

    public void setProblemDesc(String problemDesc) {
        this.problemDesc = problemDesc;
    }

    public String getProblemPath() {
        return this.problemPath;
    }

    public void setProblemPath(String problemPath) {
        this.problemPath = problemPath;
    }

    public String getSolveFlag() {
        return this.solveFlag;
    }

    public void setSolveFlag(String solveFlag) {
        this.solveFlag = solveFlag;
    }

    public String getSolveUser() {
        return this.solveUser;
    }

    public void setSolveUser(String solveUser) {
        this.solveUser = solveUser;
    }

    public Date getSolveDate() {
        return this.solveDate;
    }

    public void setSolveDate(Date solveDate) {
        this.solveDate = solveDate;
    }

    public String getSolveDesc() {
        return this.solveDesc;
    }

    public void setSolveDesc(String solveDesc) {
        this.solveDesc = solveDesc;
    }


    public String getSolvePath() {
        return this.solvePath;
    }

    public void setSolvePath(String solvePath) {
        this.solvePath = solvePath;
    }

    public URL getProblemURL() {
        return problemURL;
    }

    public void setProblemURL(URL problemURL) {
        this.problemURL = problemURL;
    }

    public URL getSolveURL() {
        return solveURL;
    }

    public void setSolveURL(URL solveURL) {
        this.solveURL = solveURL;
    }
}